<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改地区医废每日统计')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-statistical-edit" th:object="${yfDistrictStatistical}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">地区id：</label>
                <div class="col-sm-8">
                    <input name="districtId" th:field="*{districtId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">地区父id：</label>
                <div class="col-sm-8">
                    <input name="districtPid" th:field="*{districtPid}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">地区层级：</label>
                <div class="col-sm-8">
                    <input name="districtDeep" th:field="*{districtDeep}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">地区名称：</label>
                <div class="col-sm-8">
                    <input name="districtName" th:field="*{districtName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">统计日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="statisticalDate" th:value="${#dates.format(yfDistrictStatistical.statisticalDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">医疗机构数量：</label>
                <div class="col-sm-8">
                    <input name="hospitalNum" th:field="*{hospitalNum}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">暂存点数量：</label>
                <div class="col-sm-8">
                    <input name="stagingNum" th:field="*{stagingNum}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">产生医废袋数：</label>
                <div class="col-sm-8">
                    <input name="productBag" th:field="*{productBag}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">产生医废重产量：</label>
                <div class="col-sm-8">
                    <input name="productWeight" th:field="*{productWeight}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">出库医废袋数：</label>
                <div class="col-sm-8">
                    <input name="outBag" th:field="*{outBag}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">出库医废重量：</label>
                <div class="col-sm-8">
                    <input name="outWeight" th:field="*{outWeight}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">积存医废袋数：</label>
                <div class="col-sm-8">
                    <input name="storeBag" th:field="*{storeBag}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">积存医废重量：</label>
                <div class="col-sm-8">
                    <input name="storeWeight" th:field="*{storeWeight}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">标志：</label>
                <div class="col-sm-8">
                    <input name="flag" th:field="*{flag}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "yf/statistical";
        $("#form-statistical-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-statistical-edit').serialize());
            }
        }

        $("input[name='statisticalDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>